package com.project.file.helper;

import com.project.file.config.FileProperties;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author mengxj
 */
@Component
public class FilePropertiesHelper {

    private static FileProperties fileProperties;

    @Resource
    public void setFileProperties(FileProperties fileProperties) {
        FilePropertiesHelper.fileProperties = fileProperties;
    }

    public static String bucket(){
        return fileProperties.getBucket();
    }

    public static String type(){
        return fileProperties.getType();
    }
}
